﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VISS.API.Users;
using NCT.Framework;

namespace VISS.Web.Frontend.Modules.General {

    public partial class NoelShortListControl : System.Web.UI.UserControl {

        protected List<UserSrhResEnt> Profiles { get; set; }
        public bool Display { get; set; }
        public EUserGender Gender { get; set; }

        protected void Page_Load(object sender, EventArgs e) {
            if (Display) {
                int totalRecord = 0;

                EvtNoelUserSrhEnt srhEnt = new EvtNoelUserSrhEnt();
                srhEnt.Gender = Gender;
                srhEnt.GoOut = true;

                Profiles = StructureMapFactory.GetInstance<IUserGeneralProfile>().QuickSearchForNoelEvent(srhEnt, EUserQuickSearchOrderType.Random, 1, 6, out totalRecord);
            }
        }
    }
}
